import os

# Application配置参数
settings = dict(
        static_path=os.path.join(os.path.dirname(__file__), "static"),
        template_path=os.path.join(os.path.dirname(__file__), "html"),
        cookie_secret="FhLXI+BRRomtuaG47hoXEg3JCdi0BUi8vrpWmoxaoyI=",
        xsrf_cookies=False,
        debug=False
    )

# 数据库配置参数
mysql_options = dict(
    host="47.75.34.1:3306",
    database="perip",
    user="root",
    password="fonzie961006",
)
log = dict(
        path=os.path.join(os.path.dirname(__file__), 'logs'),
)

api_urls = {
    'ip_api': 'http://ip-api.com/json/{IP}',
    'taobao_api': 'http://ip.taobao.com/service/getIpInfo.php?ip={IP}',
    'sudops': 'https://www.sudops.com/ipq/?format=json&token=9a3061dc225dedc7d87e9ca02997b8de&ip={IP}'
}
headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.59 Safari/537.36'
}